/*************************************************************************
	> File Name: Temperatureprotect.h
	> Author: 
	> Mail: 
	> Created Time: 2018/02/08 Fri 10:32
	> Version     :
 ************************************************************************/

#ifndef _TEMPERATUREPROTECT_H
#define _TEMPERATUREPROTECT_H
#include <stdio.h>

typedef struct tmpProtParams{
	int32_t isEnable;
	highFreqAGCParams_t freqAGCCParams;
}tmpProtParams_t;

typedef struct tmpProtectCfg{
	int32_t isEnable;
	highFreqAGCCfg_t freqAGCCfg;
}tmpProtectCfg_t;

void temperatureProtectProcess(int32_t *data,tmpProtectCfg_t *cfg,uint16_t cnt);
int temperatureProtectInit(tmpProtectCfg_t *cfg);
int temperatureProtectReset(tmpProtectCfg_t *cfg);
int temperatureProtectSetParams(tmpProtectCfg_t *cfg,tmpProtParams_t *params,uint16_t dataBitNum);
int temperatureProtectGetParams(tmpProtectCfg_t *cfg,tmpProtParams_t *params,uint16_t dataBitNum);

#endif
